package routes

import "gitee.com/anxu/golang-web/src/handlers"

var routes = []route{
	{
		"home",
		[]string{"GET"},
		"/",
		(&handlers.Home{}).Index,
	},
	{
		"signup",
		[]string{"GET", "POST"},
		"/signup",
		(&handlers.Auth{}).Signup,
	},
	{
		"login",
		[]string{"GET", "POST"},
		"/login",
		(&handlers.Auth{}).Login,
	},
	{
		"logout",
		[]string{"GET"},
		"/logout",
		(&handlers.Auth{}).Logout,
	},

	{
		"threadCreate",
		[]string{"GET", "POST"},
		"/thread",
		(&handlers.Thread{}).Create,
	},
	{
		"threadView",
		[]string{"GET"},
		"/thread/{uuid}",
		(&handlers.Thread{}).View,
	},
	{
		"postCreate",
		[]string{"POST"},
		"/thread/{uuid}",
		(&handlers.Post{}).Create,
	},
}
